<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="decorator" content="default" />
<title>List</title>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/sys/user/list">用户列表</a></li>
		<%-- <shiro:hasPermission name="sys:user:edit"> --%>
			<li><a href="${ctx}/sys/user/form">用户添加</a></li>
		<%-- </shiro:hasPermission> --%>
	</ul>
	<common:message content="${message}" />
	<table id="contentTable"
		class="table table-striped table-bordered table-condensed">
		<tr>
			<th>姓名</th>
			<th>登录名</th>
			<th>手机</th>
			<th>邮箱</th>
			<th>备注</th>
			<shiro:hasPermission name="sys:user:edit">
				<th>操作</th>
			</shiro:hasPermission>
		</tr>
		<c:forEach items="${page.list}" var="user">
			<tr>
				<td><a href="${ctx}/sys/user/form?id=${user.id}">${user.realName}</a></td>
				<td>${user.name}</td>
				<td>${user.mobile}</td>
				<td>${user.email}</td>
				<td>${user.remarks}</td>
				<shiro:hasPermission name="sys:user:edit">
					<td><a href="${ctx}/sys/user/form?id=${user.id}">修改</a>
					<c:if test="${user.admin!='1'}">
						<a onclick="return confirmx('确认要删除该用户吗？', this.href)"
						href="${ctx}/sys/user/delete?id=${user.id}">删除</a>
					</c:if>
						</td>
				</shiro:hasPermission>
			</tr>
		</c:forEach>
	</table>
	<div class="pagination">${page}</div>


</body>
</html>